package com.azdebugit.moshi.test.learn.zhuangshimoshi.test.abs;

import com.azdebugit.moshi.test.learn.zhuangshimoshi.test.IComponent;

/**
 * @Author: itdebug
 * @Email: itdebug
 * @version:: design_pattern_and_otherutils
 * @description:
 * @create: 2021/11/6 19:35.
 */
public abstract class Decorator implements IComponent{
    private IComponent component;
    public Decorator(IComponent component){
        this.component = component;
    };

    @Override
    public void sayHello() {
        component.sayHello();
    }

}
